#include<iostream>

using namespace std;

int main(int argc, char *argv[], char *env[])
{
  cout<<argv[0]<<"begin runing"<<endl;
  cout<<"这是命令行参数:\n";
  for(int i=0;argv[i];i++)
  {
    cout<<i<<":"<<argv[i]<<endl;
  }
  cout<<"这是环境变:\n";
  for(int j = 0;env[j];j++)
  {
    cout<<j<<":"<<env[j]<<endl;
  }
  cout<<argv[0]<<"stop runing"<<endl;

  return 0;
}
